package indi.zhifa.recipe.bailan.framework.queue.bean;


import indi.zhifa.recipe.bailan.framework.queue.handler.RedisConsumer;

import java.util.HashMap;
import java.util.Map;


public abstract class RedisConsumerMap {
    protected final Map<String, RedisConsumer> consumerMap;

    protected RedisConsumerMap(){
        consumerMap = new HashMap<>();
    }

    public RedisConsumer getConsumer(String pName){
        return consumerMap.get(pName);
    }
}
